package com.example.service.impl;

import com.alibaba.csp.sentinel.annotation.SentinelResource;
import org.springframework.stereotype.Service;

@Service
public class TraceService {

    @SentinelResource("vipResource") // 该注解声明下面的方法是Sentinel的资源，并给资源起名为vipResource
    public void vipResource(){
        System.out.println("我是重要的资源");
    }
}
